package com.red.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.red.dto.HomePageQueryDTO;
import com.red.dto.NotesUploadDTO;
import com.red.dto.TravelNotesDTO;
import com.red.dto.commentPageQueryDTO;
import com.red.entity.NoteComments;
import com.red.entity.TravelNotes;
import com.red.result.PageResult;
import com.red.vo.NotesVO;
import org.apache.poi.sl.usermodel.Notes;

import java.util.List;


public interface TravelNotesService extends IService<TravelNotes> {
    PageResult pageQuery(HomePageQueryDTO dto);

    void uploadNote(NotesUploadDTO dto);

    void deleteByIds(List<Long> ids);

    void noteLike(Long id);

    List<TravelNotes> selectByUserId();

    NotesVO selectById(Long id);

    List<NotesVO> selectAllByUserId();

    void uploadComment(NoteComments noteComments);

    void approval(TravelNotes travelNotes);

    PageResult adminPageQuery(TravelNotesDTO dto);

    PageResult commentPageQuery(commentPageQueryDTO dto);

    void deleteCommentByIds(List<Long> ids);
}
